package com.qf.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

@Component//实例化到SpringIOC容器中 开了就不用下面的注解了  通过Autowired注入
//@EnableConfigurationProperties
@ConfigurationProperties(prefix = "aliyun")
@Data //获取需要用到get set方法
public class AliyunProperties {
    String username;
    String ip;
}

